<?php
/*
Template Name: Appointment Page
*/

get_header();?>

<div class="container">

	<!-- Page banner -->
	<?php fw_subpages_banner('full_width');?>
	
	<!-- Breadcrumbs -->
	<div class="breadcrumbs">
		<?php echo get_the_breadcrumb(); /** add breadcrumbs */ ?>
	</div>
    
      <?php $sidebar = get_post_meta($queried_obj->ID, 'wl_custom_sidebar', true); 
		//echo $sidebar ; exit ; 
	$contents_area = ( $sidebar != -1) ? 'contents_area' : '';
	$contents = ( $sidebar != -1) ? 'contents' : '';
	?>

	<!--Content Area -->
	<div id="<?php echo $contents_area; ?>">
		<div class="<?php echo $contents; ?>">
        	<?php while(have_posts()): the_post();?>
            	<div class="block no-margin-bottom">
                	<h1><?php the_title();?></h1>
                    <?php the_content();?>
                </div>
            <?php endwhile;?>
        </div>
    </div>
	  <?php if( $sidebar != -1): ?>
    <!-- Sidebar -->
	<div id="side_bar">
		<?php _load_dynamic_sidebar('full_width', 'blog-sidebar');?>
	</div>
      <?php endif; ?>
</div>

<?php get_footer();?>